package org.nightrunner.d3.util;

import java.util.LinkedList;
import java.util.List;

public class OperateInfo {

	private String info;

	private List<Link> links = new LinkedList<Link>();

	public void addLink(Link link) {
		links.add(link);
	}

	public List<Link> getLinks() {
		return links;
	}

	public void setLinks(List<Link> links) {
		this.links = links;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public static class Link {
		public Link(String name, String url) {
			setName(name);
			setUrl(url);
		}

		private String name;

		private String url;

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getUrl() {
			return url;
		}

		public void setUrl(String url) {
			this.url = url;
		}
	}
}
